package com.ruibang.glass.produce.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruibang.glass.common.utils.validateannotation.NotBlank;
import com.teaming.cloud.framework2.common.pojo.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.time.LocalDate;
import java.time.LocalDateTime;

import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;

/**
 * <p>
 * 工艺调整
 * </p>
 *
 * @author songJinKang
 * @since 2024-03-15
 */
@Data
@ApiModel(value = "工艺调整")
@TableName("g_produce_process_adjustment")
public class ProcessAdjustment extends BaseEntity {
    @ApiModelProperty(value = "主键ID")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;
    @ApiModelProperty(value = "日期")
    private LocalDate date;
    @ApiModelProperty(value = "班组")
    @NotBlank(message = "班组不可为空")
    private String teamGroup;
    @ApiModelProperty(value = "班次")
    private String classes;
    @ApiModelProperty(value = "时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @NotNull(message = "时间不可为空")
    private LocalDateTime time;
    @ApiModelProperty(value = "调整内容")
    private String adjustContent;
    @ApiModelProperty(value = "备注")
    private String note;
    @ApiModelProperty(value = "记录人")
    private String recorder;
    @ApiModelProperty(value = "下达人")
    private String issuedBy;
    @ApiModelProperty(value = "类型:1成型  2通道  3窑炉")
    @NotBlank(message = "工艺类型不可为空")
    private String type;
    @ApiModelProperty(value = "记录人用户ID")
    private String recorderId;
    @ApiModelProperty(value = "下达人用户ID")
    private String issuedById;
    @ApiModelProperty(value = "是否删除：1：是 0：否")
    @TableLogic
    private String isDelete;
}
